import random
class Game:
    top_score = 0
    def __init__(self,player_name):
        self.player_name = player_name

    @staticmethod
    def show_help():
        print('显示游戏帮助信息')

    @classmethod
    def show_top_score(cls):
        print(f'历史最高分:{cls.top_score}')

    def start_game(self):
        score = random.randint(10,100)
        print(f'{self.player_name}本次游戏得分:{score}')
        if score > Game.top_score:
            Game.top_score = score

if __name__ == '__main__':
    Game.show_help()
    game = Game('张三')
    while True:
        num = input('[1开始游戏|2.退出]:')
        if num == '1':
            game.show_top_score()
            game.start_game()
        else:
            break